main: Also automatically remount rw /sysroot for `ostree pull` etc.
authorColin Walters <walters@verbum.org>
Thu, 12 Mar 2020 21:10:29 +0000 (21:10 +0000)
committerColin Walters <walters@verbum.org>
Fri, 13 Mar 2020 20:53:26 +0000 (20:53 +0000)
commit6a27dff94100c31edf392b26ace05009f4dedf9c
tree65c86af20f07c7701e1bf10caa4088925094c48b
parent2d901957b8d102c569ce362a919798035455d229
main: Also automatically remount rw /sysroot for `ostree pull` etc.

See https://github.com/coreos/fedora-coreos-tracker/issues/343
When we added the read-only sysroot support it broke using "raw"
`ostree pull` and `ostree refs --create` and all of the core repo
CLIs that just operate on a repo and not a sysroot.

Fixing this is a bit ugly as it "layer crosses" things even more.
Extract a helper function that works in both cases.
src/ostree/ot-main.c